package com.chenu.gamscriptman.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.chenu.gamscriptman.domain.GameData;
import com.chenu.gamscriptman.domain.noindb.PageBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface GameDataDao extends BaseMapper<GameData> {

    /**
     * 查询数据库中最新的Id
     */
    Long selectNewId();

    /* 根据游戏分组查询所有的游戏数据 */
    List<GameData> selectAllByGameName(PageBean<GameData> page, @Param("gameName") String gameName);

}